package com.example.gaojt.androiddemo;

import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

import com.example.gaojt.VidmateData;

import java.util.ArrayList;

/**
 * Created by gaojt on 7/30/17.
 */

public class MyActivity extends Activity {
    boolean mIsShow = true;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.my_ly);
        final View rootView = findViewById(R.id.rootView);
        fullLayout(this, rootView);
        rootView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (mIsShow) {
                    hideStatusBar(rootView);
                    mIsShow = false;
                } else {
                    showStatusBar(rootView);
                    mIsShow = true;
                }

            }
        });

        new Thread() {
            @Override
            public void run() {
                super.run();
                String a =
                        "PF7PQ6FWi7rJnNK5VzZdK+feYNKT1Gs0acN0WOaDEYfrVcdmQsr0Fe60T3D0jFp9egALwQAhaECd8AZFFtaCJS85dYBR2IOjhj2Pe7JIcBkesby3\\/DMoKJdDYdfoN2x0ug6Esjbd\\/RJgGTOcrnTlo+qR3tXSVt2ILr5pYhNlPui94PQDiPaJZndmT+5pC1iEjrlvIGIeGAo++ISLQ68RxiLtMKl1Cyfp5pIoTqUbeQRY9U4fk2XFSP9ndCtf45D3ZIP3JCXXytyEQFoTzdSaf5l+AoE\\/fgEtAC1pILjEmZJ8D9qdx2w0mCYSP5kYln4bZd63jPOAIgqlT+LT+ew\\/YlgqrGD1FRjhsrDg6sTW7wA2JivkHmo94QzdviEjnzZdL\\/ddMq14mYNI\\/+6XQBHDAZ9ycQ\\/z2haUCV4gPZGcESyr12Qp0PTQkG7QShU3SnJD4IHO+NPcKdGccWkrI1HM40SiTnqhk2qvEo3YZ48xDbZG1oT85OHBlPOB2s56ctvSJMsH4H8qAf0hFYX1epWRnRL7BXgQG6n3AIE7nR07zbOLQUBWcZFeYvxHn2ZMbTx\\/LJO1cE2k8aFjDi3Un871+3nFzuybbFS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+vkhPsaxBbZO2EaXp7x8dyfU+QfBV6Z1OEZtnYtM7qjSMiOuTSlGysGUQUz9UNXYjPiTFsqYc\\/wJCju3eSCjkhv4mN0WMNRk6NwcyLZi1I+YTJLXp1fpdR1NgioJG2Hgs\\/WneqhiJC7CIWzdLhcs9XSY6h0gmyyrBFgEgh5lSE1ngizQRP46uAiEQTCt39Nvx+4lIrE7yA649t5fjxD+G463RDbvko69hGHoWTDMzCz92Mm1m9AnWaa+4LqRowbRRS5bn374wnXeHAYNW7BBlSmZGlO8Vbn7qAlUx7ik9eevcqlfulY6M4xo4v3cIHgID6IGRF7WikM0s9DEBzkllTxX7";
                // VidmateData.aa(a);

                String home_tab =
                        "IoxZTDd4pSE+\\/a\\/OmNldWAC6+C+ajK9vvLH3UBaohY3CoryNgFxaGw6qYUyj7DyP2TXOlREK+jv04hxIUc8hPAgsHNLd20qM+9YAR54mRur5OQGg5wn5LcznPP39MYx\\/KgXt6XKi6fC\\/Jo5cMALNIupYxi8dpQJTCUnIuLOtPIiU0mnxNGL9njbWEkoMJqw7GGm1PRzyPTwDUPpYv8+Hr7VVHeyruZkJgl9InPBjvFqwYq3hKqN76hIqoHu\\/of+oEK6BYMeYGo3zmMqWsRfZcdEwZ7WcRFfDQ6F+b6FP3N46RecBqSZZdKb1JpIlOSLVzAVssuJQ2IRMUb3z9P8pnPEWqEqTymoGWbIh3xnP0stIjtZcTTWIp7klR135WI5OoQvhsbhviALcSS5MGBO1Rb+BBS\\/vTW8zKRCTPqrw\\/Aolkp6mH52ByC2PYZjgRmyfsy5Fa0TH8Q\\/puGRlMLv22Z+6Tb3MoosSG2Vqqgbo6pzdKZhYr+VV1QSK0zzmHLKOx7msz5znxWow2nLH9zRrjojhs7NJQSK51HTZd9PjkQA=";
                // VidmateData.aa(home_tab);

                String bb =
                        "w2qyqWufeLmk57r5TFedkqiRgwoS9lk9mGMXJQ1mRWfUZwQGVnS2cbUs+QPY7wV\\/j0KlEpG4FVN7Lnd4assFYfbsqEw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7V61pa3DGBFpmtzLDSg3NBtgXGBam7hNOGWzy8uzpgHt9\\/w1Ub5YPy86KL9c8+gP1+v9WhWDvbcExWapsZ51nYmPDtiNusYOq4zs3d\\/huB\\/eHDZlGOpUUz5Gn\\/BZTyqWBCs4d\\/eD77kp5CQRJRcCuGBirDTFXLWV\\/oRG7owLY7yDTpXi\\/XYFte3+rWgqcd4h\\/FOzyJj44TKNiRZgQIql8bO5F\\/F\\/Tuu2zbDvFaoflzkxDzbMjTn4iij4iEoCwYwZId\\/n6hNE5pPpSxD7o3zft3Nh1EUzC5TwRAIxGtKcEjg5LGGWpu5R5jE7sfE\\/BLB1ohNxAQqtpXqZiZpxMH5QY2KzoP6827\\/kmHlgGVvkO\\/cFsGZCHGwJdA4h2cHtO2XGUvuM5LaIrQ+J8ZytlQDQnCb+CDbVDY3GO9Th1PamNBABMA4w3C0PonJom7++265VyfqRIljiXyf2u529xPCvUVG1S0aWENSYbEX4XllZplRjt4wsq0m0Les3JtbauyIdMNG3KYqmpsXFwn9Q8ce93uErE2Guwlq3a94Vc+ogHtJRr4LSKax9cAqMyWc6ZRvVPIXbMDgT\\/9YcF55kZ4D3GjaOedqwlP+nw9+68asIj0c8tBaALxhESRvimmbpXw\\/HBkSniN6EuV6rBw\\/IR2+Pxl8Gww6B41isEEsVCvsJhYHSUMOPhZBK86Zc\\/f8rMXKpsXZ2cbag==";
                VidmateData.aa(bb);
            }
        }.start();
    }

    public static void fullLayout(Activity activity, View rootView) {
        if (Build.VERSION.SDK_INT >= 16) {
            int visibility = View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION;
            // if (hwIsMx()) {
            // visibility |= View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
            // }
            rootView.setSystemUiVisibility(visibility);
            return;
        }
        Window win = activity.getWindow();
        win.addFlags(
                WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
    }

    private int mFlags;
    private final static int FORCE_HIDE_STATUS = 1;
    private final static int HIDE_STATUS = 2;

    public void hideStatusBar(View rootView) {
        mFlags |= HIDE_STATUS;
        updateWindow(rootView);
    }

    public void showStatusBar(View rootView) {
        mFlags &= ~HIDE_STATUS;
        updateWindow(rootView);
    }

    private void updateWindow(View rootView) {
        if (Build.VERSION.SDK_INT >= 16) {
            updateWindowAtLeast16(rootView);
            return;
        }
        Window win = getWindow();
        if (((mFlags & HIDE_STATUS) != 0) || ((mFlags & FORCE_HIDE_STATUS) != 0)) {
            win.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        } else {
            win.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        }
    }

    private void updateWindowAtLeast16(View rootView) {
        int flags = rootView.getSystemUiVisibility();
        if (((mFlags & HIDE_STATUS) != 0) || ((mFlags & FORCE_HIDE_STATUS) != 0)) {
            flags |= View.SYSTEM_UI_FLAG_FULLSCREEN;
            flags |= View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
            flags |= View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
            rootView.setSystemUiVisibility(flags);
        } else {
            flags &= ~View.SYSTEM_UI_FLAG_FULLSCREEN;
            // if (!GalleryUtils.hwIsMx()) {
            flags &= ~View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;
            // }
            flags &= ~View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
            rootView.setSystemUiVisibility(flags);
        }
    }


}
